﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace DataChannel.Web
{
    [Serializable()]
    public sealed class WebServiceException : Exception
    {
        const string eventMessage = "The system encountered a problem, please try again later";

        public override string StackTrace
        {
            get
            {
                return "Sorry, you can not view the system stack trace";
            }
        }

        public WebServiceException()
            : base(eventMessage)
        {

        }

        public WebServiceException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        public WebServiceException(string message)
            : base(message)
        {
        }

        private WebServiceException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}
